package parser

import "gitee.com/agilecho/tec"

type APIJSONParser struct {
}

func (this *APIJSONParser) Parse(ctx *tec.Context) {
	ctx.Result("hello world.")
}

func CreateParser() *APIJSONParser {
	return &APIJSONParser{}
}

func NewErrorResult(error string) tec.Result {
	return tec.Result{
		Code: 500,
		Msg:  error,
	}
}
